#pragma once

#include <algorithm>
#include <iostream>
#include <cstring>
#include <string>
#include <vector>

//select <column> from <table> [ where <cond> ]
//delete <table> [ where <cond> ]
//insert <table> values (<const-value>[, <const-value>…])
//update <table> set <column> = <const-value> [ where <cond> ]

std::string usingdb = " ";

std::vector<std::string> StringSplit(std::string& str,char div){//指令分开
    char* strc = const_cast<char*>(str.c_str());
    std::string s;
    s.append(1, div);
    std::vector<std::string> com;
    char* splitted = strtok(strc, s.c_str());
    while (splitted != nullptr) {
        com.push_back(std::string(splitted));
        splitted = strtok(nullptr, s.c_str());
    }
    return com;
}

void cmdToUper(std::string& cmd)//转大写
{
    std::transform(cmd.begin(),cmd.end(),cmd.begin(),::toupper);
}


